package com.synthefact.daj.view.awt;

import java.applet.Applet;
import java.awt.event.ActionListener;

import com.synthefact.daj.ctrl.NetworkController;

/**
 * An application is the view of the program running on the network.
 * 
 * XXX - should this be an applet? <br/>
 * XXX - should this be called Application?
 */
public abstract class Application extends Applet implements ActionListener {

    private String iTitle;
    private int iWidth;
    private int iHeight;
    private NetworkController iNetworkCtrlr;

    /**
     * Construct an application
     * 
     * @param t
     *            the title for the application
     * @param w
     *            the width of the window
     * @param h
     *            the height of the window
     * 
     * 
     */
    public Application(String t, int w, int h) {
	iTitle = t;
	iWidth = w;
	iHeight = h;
    }

    /**
     * run
     */
    public void run() {
	iNetworkCtrlr = new NetworkController((Application) this, iTitle, iWidth, iHeight, 100, 100);
    }
}
